import Vue from 'vue'
import App from './App.vue'
import './plugins/element.js'
import axios from '@/utils/request'
import mixin from '@/utils/mixin'
import apis from '@/apis'
import config from '@/utils/config'
import '@/assets/scss/reset.scss'
import '@/assets/scss/common.scss'
import '@/assets/icon/iconfont.js'
import ImageViewer from '@/components/ImageViewer'
import dayjs from 'dayjs'
import 'dayjs/locale/zh-cn'
import ElementUI from 'element-ui'
import * as echarts from 'echarts'
import { px2vw } from '@/utils/util'

dayjs.locale('zh-cn')
Vue.prototype.$echarts = echarts
Vue.use(ElementUI)
Vue.config.productionTip = false
Vue.prototype.$axios = axios
Vue.prototype.$apis = apis
Vue.prototype.$config = config
Vue.prototype.$dayjs = dayjs
Vue.prototype.$px2vw = px2vw
Vue.prototype.$event = new Vue()

// 自定义组件
Vue.component(ImageViewer.name, ImageViewer)
Vue.mixin(mixin)
new Vue({
  render: h => h(App)
}).$mount('#app')
